package com.lesso.yjy.sunflower.listener;

import com.lesso.yjy.sunflower.resource.config.RabbitMQConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class RabbitMQListener {
    @RabbitListener(queues = RabbitMQConfig.SUNFLOWER_QUEUE)
    public void process(String content) {
        log.info("rabbitmq msg is: {}", content);
    }
}
